<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
  <head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2007. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <meta http-equiv="Content-Style-Type" content="text/css">
    <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
    <title>
      Executing an expression
    </title>
  </head>
  <body>
    <h1>
      Executing an expression
    </h1>
    <p>
      Executing an expression evaluates an expression but does not display a result.
    </p>
    <p>
      If you select the expression to execute and click the <strong>Execute</strong> button in the toolbar, no result is
      displayed, but the code is executed.&nbsp;&nbsp;
    </p>
    <p>
      For example, if you type and highlight <code>System.out.println(&quot;Hello World&quot;)</code>, and click the <strong>Execute</strong> button, <em>Hello World</em>
      appears in the Console view, but no result is displayed in the scrapbook editor or the Expressions view.
    </p>
    <h3 class="related">Related concepts</h3>
      <a href="../concepts/concept-java-views.htm">Java views</a>
    <h3 class="related">Related tasks</h3>
      <a href="task-display_evaluation_result.htm">Displaying the result of evaluating an expression</a><br>
      <a href="task-inspect_evaluation_result.htm">Inspecting the result of evaluating an expression</a><br>
      <a href="../tasks/task-view_runtime_exceptions.htm">Viewing runtime exceptions</a>
    <h3 class="related">Related references</h3>
      <a href="../reference/views/expressions/ref-expressions_view.htm">Expressions view</a><br>
      <a href="../reference/views/console/ref-console_view.htm">Console view</a>
  </body>
</html>

